const useTheme = () => {
    const themeStore = useThemeStore()
    const Theme = ref(themeStore.currentTheme)
    
    const updateTheme = () => {
        Theme.value = themeStore.currentTheme
    }
    
    onShow(() => {
        updateTheme()
    })
    
    return { 
        Theme,
        updateTheme 
    }
}

export { useTheme }